Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
Printing Messages / PostScript Imaging Messages


GXPostScriptExitServer

QuickDraw GX sends the GXPostScriptExitServer message when the printer
needs to be restarted. You can override the GXPostScriptExitServer message to change the code used to exit the server loop in the printer. Your override of the GXPostScriptExitServer message must match the following formal declaration:

OSErr MyPostScriptExitServer (void);
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
QuickDraw GX's default implementation of the GXPostScriptQueryPrinter message sends the GXPostScriptExitServer message when a device requires restarting. This message allows you to modify the permanent state of a printer.

When you exit the server loop, you can make changes that persist after the loop is reentered, such as changing the password. You must send an end-of-file (EOF) to the printer to reenter the server loop.

The default implementation of this message sends the following PostScript code:

serverdict begin 000000 exitserver
The 000000 value in this code is the default password for the printer.

SPECIAL CONSIDERATIONS
You can either partially or totally override the GXPostScriptExit Server message. If you override this message because the password has been changed, you must totally override it.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.
The default implementation of the GXPostScriptExitServer message can also return the communications errors that are listed in Table 4-2 on page 4-42.

SEE ALSO
The GXPostScriptQueryPrinter message is described on page 4-101.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help